package cl.gob.minvu.catastromobile.util;

import android.util.Log;

/**
 * @author psep
 *
 */
public class Logger {
	
	private static String className;
	private static final Logger logger = new Logger();
	
	private Logger(){}
	
	public static <T> Logger getLogger(Class<T> clase) {
		className = clase.getName();
		return logger;
	}
	
	public void info(String msg){
		Log.i(className, msg);
	}
	
	public void error(String msg){
		Log.e(className, msg);
	}
	
	public void warn(String msg){
		Log.w(className, msg);
	}

}
